class CreateActivities < ActiveRecord::Migration
  def self.up
    create_table :activities do |t|
      t.string :name
      t.string :label

      t.integer :tracker_id
      
      #when
      #pre-condition: in-links from other actions
        # pre_activities

      #postcondition: validation, comletion of this action
      
      #what
      #update to fields, tickets - simple
      #formula - meduim
      #script: custom updates, generation of other tickets, fields - advanced
      
      #who,where
      #access rights
      t.timestamps
    end
  end

  def self.down
    drop_table :activities
  end
end
